﻿#include "Outstanding_Order.h"
#include "ui_outstanding_order.h"

Outstanding_Order::Outstanding_Order(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Outstanding_Order)
{
    ui->setupUi(this);
    time = new QLabel(ui->frameBottom);
    time->setGeometry(10, 10, 200, 40);
    time->setStyleSheet("QLabel{font: 20px; color: rgb(25, 25, 112);}");
    signal = new QLabel(ui->frameBottom);
    signal->setGeometry(700, 18, 41, 22);
    signal->setStyleSheet("QLabel{background-color:transparent;}");
#if (GUN_AMOUNT == 1)
    ui->pushButton->hide();
#endif
    QDir dir(IMAGE_PATH);
    if(dir.exists())
    {
        ui->frameTop->setStyleSheet(LOGO_STY);
    }

    connect(stackLayout, SIGNAL(currentChanged(int)), this, SLOT(ShowGunNum(int)));
}

void Outstanding_Order::ShowGunNum(int current)
{
    if(current == OutstandingOrderPage)
    {
        ui->_focus_gun_->setText(QString::number(focus_gun_));
    }
}

Outstanding_Order::~Outstanding_Order()
{
    delete ui;
}

void Outstanding_Order::on_pushButton_clicked()
{
    Init_Focus();
}

void Outstanding_Order::on_OutstandingOrder_buttonSettle_clicked()//历史订单的结算
{

}
